package prova.DAO;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import prova.modelo.Aluno;
import prova.modelo.Turma;

/**
 * Session Bean implementation class MatricularAlunoDAO
 */
@Stateless
public class MatricularAlunoDAO implements MatricularAlunoDAORemote {

    /**
     * Default constructor. 
     */
	@PersistenceContext(unitName="EscolaEJB")
    private EntityManager em;
	
    public MatricularAlunoDAO() {
        // TODO Auto-generated constructor stub
    }

	@Override
	public void matricularAluno(Turma t, Aluno a) {
		
		em.persist(a);
	}

	

	@Override
	public Aluno getAluno(String cpf) {
		// TODO Auto-generated method stub
		return null;
	}

}
